//
//  UILabel+Extented.swift
//  SecondWB
//
//  Created by 赖建伟 on 16/11/27.
//  Copyright © 2016年 Itheima. All rights reserved.
//

import UIKit

extension UILabel {
    
    convenience init(title: String,titleColor:UIColor?,font: CGFloat?,corner: CGFloat?,numbleOfLine:NSInteger = 1 , textsAlignment: NSTextAlignment = .left) {
        self.init()
        
        text = title
        textColor = titleColor
        if let font = font {
             self.font = UIFont.systemFont(ofSize: font)
        }
        if let corner = corner {
            layer.cornerRadius = corner
        }
        
        self.numberOfLines = numbleOfLine
        self.textAlignment = textsAlignment
        
    }
    
    
    
}
